#!/bin/bash
#if [ -f out_array ] ; then
#rm out_array
#fi
#for var in *.bmp; do oledhex ${var} >> out_array; done

if [ $# = 1 ] ; then
echo "cd to "$1
cd $1
fi

if [ -f out_array ] ; then
echo "rm out array"
rm out_array
fi

if [ -f out_array_info ] ; then
echo "rm out array info"
rm out_array_info
fi

if [ -f out_array_enum ] ; then
echo "rm out array enum"
rm out_array_enum
fi
for var in *.bmp; do oledhex ${var} >> out_array; done
cd -


#if [ -f out_enum ] ; then
#rm out_enum
#fi
#for var in *.bmp; 
#do 
#declare -u test_new
#test_new=${var%\)*}
#test_new=${var%.*}
#test_new=${test_new//\(/_}
#test_new=${test_new//,/_}
#test_new=${test_new//-/_}
#test_new=${test_new%\)*}
#echo ${test_new}, >> out_enum
#done
